/**
* @Author: Zhengfeng.Yao
* @Date:   2017-01-23 14:12:23
* @Last modified by:   Zhengfeng.Yao
* @Last modified time: 2017-02-09 14:49:23
*/

import React, { Component } from 'react';
import cn from 'classnames';
import './downloadButton.less';

const noop = () => {};

export default function DownloadButton({ onClick, children, disabled, className, style }) {
  return (
    <a onClick={onClick || noop} style={style || {}} className={cn('aegis-download-btn', className, {'aegis-download-btn-disabled': disabled})}>
      <i />
      {
        children
      }
    </a>
  );
}
